Lookinf for useWindows for Views ..

Hello

May be it is very simple, but I cannot find anything about this.

Using "void useWindows(ViewDef viewDef, bool save)" defines that a checkbox in the view will be disabled or not. But how can I set the checkbox?

Thanks for help
Wolfgang
SystemAdmin - Mon Feb 25 07:27:31 EST 2013

Re: Lookinf for useWindows for Views ..
Tony_Goodman - Tue Feb 26 05:06:45 EST 2013

The call sets the useWindows on or off. You then need to save the view definition.
The following toggles and then saves this setting:
 

ViewDef v = get(view "amg")
 
bool b = useWindows(v)
 
print("remember window size and position = " b "\n")
 
useWindows(v, !b)
 
b = useWindows(v)
 
print("remember window size and position = " b "\n")
 
save(view "amg", v)


Tony Goodman, www.smartdxl.com

Re: Lookinf for useWindows for Views ..
SystemAdmin - Wed Feb 27 02:41:27 EST 2013

Tony_Goodman - Tue Feb 26 05:06:45 EST 2013

The call sets the useWindows on or off. You then need to save the view definition.
The following toggles and then saves this setting:
 

ViewDef v = get(view "amg")
 
bool b = useWindows(v)
 
print("remember window size and position = " b "\n")
 
useWindows(v, !b)
 
b = useWindows(v)
 
print("remember window size and position = " b "\n")
 
save(view "amg", v)


Tony Goodman, www.smartdxl.com

Hello

Thanks but my problem is something different:

If I want to save a view from the menue directly (without dxl) I've the tabs "General" and "Advanced". On General I've the checkbox "Window size and position". And "useWindows()" enables or disables this dialog box. But I want to enable it and set it on true. And this I want to do with dxl.

Best regards
Wolfgang

Re: Lookinf for useWindows for Views ..
Tony_Goodman - Wed Feb 27 09:26:39 EST 2013

SystemAdmin - Wed Feb 27 02:41:27 EST 2013
Hello

Thanks but my problem is something different:

If I want to save a view from the menue directly (without dxl) I've the tabs "General" and "Advanced". On General I've the checkbox "Window size and position". And "useWindows()" enables or disables this dialog box. But I want to enable it and set it on true. And this I want to do with dxl.

Best regards
Wolfgang

When you save a new view using the View > Save As menu option, the Window size and position option is available.

When you select the Manage Views menu option and select a view, the Window size and position option will NOT be available if it was originally unchecked. It is greyed out because the view may not be visible, so the size and position is unknown.

If the window size and position box was originally checked then the option to turn it off is available. Doing so renders the option greyed out.

Tony Goodman, www.smartdxl.com

Re: Lookinf for useWindows for Views ..
llandale - Wed Feb 27 15:04:45 EST 2013

Tony_Goodman - Wed Feb 27 09:26:39 EST 2013
When you save a new view using the View > Save As menu option, the Window size and position option is available.

When you select the Manage Views menu option and select a view, the Window size and position option will NOT be available if it was originally unchecked. It is greyed out because the view may not be visible, so the size and position is unknown.

If the window size and position box was originally checked then the option to turn it off is available. Doing so renders the option greyed out.

Tony Goodman, www.smartdxl.com

You know, it never occurred to me the off options cannot be turned on in the Manage dialog because the information isn't available. Doh! You need to load the view, save-as, and turn it on that way.

Re: Lookinf for useWindows for Views ..
SystemAdmin - Wed Feb 27 15:51:56 EST 2013

llandale - Wed Feb 27 15:04:45 EST 2013
You know, it never occurred to me the off options cannot be turned on in the Manage dialog because the information isn't available. Doh! You need to load the view, save-as, and turn it on that way.

If memory serves me right, the greying out of view options in the Manage Views dialogue was not always the case - in DOORS 7.x and earlier I am sure that you could enable and disable all View properties from the Manage Views dialogue. So why the change from version 8 onwards?


Paul Miller,
Melbourne, Australia

Re: Lookinf for useWindows for Views ..
llandale - Wed Feb 27 16:25:58 EST 2013

SystemAdmin - Wed Feb 27 15:51:56 EST 2013
If memory serves me right, the greying out of view options in the Manage Views dialogue was not always the case - in DOORS 7.x and earlier I am sure that you could enable and disable all View properties from the Manage Views dialogue. So why the change from version 8 onwards?


Paul Miller,
Melbourne, Australia

You know, you are right. Also. Now that you mention it I do recall that "feature" being added.

Well, a reason to change it is because it was not working well, but you'd think several of us would have noticed that turning on an option (such as remember Filtering) didn't actually do anything ... or took the CURRENT view settings and remembered that.

-Louie

On the other hand, if it DID remember the current view settings for that feature, then it would work the same way as if you loaded the view and save-as, setting the setting; since loading the view would not change the setting because the view ignores it.

I think the answer to many of these "why" questions is the same answer to: "Why do dogs circle before business?" It's because they want to.

Re: Lookinf for useWindows for Views ..
SystemAdmin - Thu Feb 28 02:40:56 EST 2013

llandale - Wed Feb 27 15:04:45 EST 2013
You know, it never occurred to me the off options cannot be turned on in the Manage dialog because the information isn't available. Doh! You need to load the view, save-as, and turn it on that way.

Thanks, now I've understand it ...

> You know, it never occurred to me the off options cannot be turned on in the Manage dialog because the information isn't available. Doh! You need to load the view, save-as, and turn it on that way.

It's another chapter of the doors voodoo, not for the programmer, but for the user.